﻿<Window x:Class="CECB.testWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"      
    
        Title="testWindow" Height="663" Width="727" Closing="Window_Closing" x:Name="winHelp" WindowStartupLocation="CenterScreen" WindowStyle="None">
    <Window.Triggers>
        <EventTrigger RoutedEvent="Window.Loaded">
            <BeginStoryboard>
                <Storyboard Name="FormFade">
                    <DoubleAnimation  Name="FormFadeAnimation"
                                  Storyboard.TargetName="winHelp"
                                  Storyboard.TargetProperty="(Window.Opacity)"
                                  From="0.0"
                                  To="1.0"
                                  Duration="0:0:1"
                                  AutoReverse="False"
                                  RepeatBehavior="1x" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
        <EventTrigger RoutedEvent="Window.Unloaded">
            <BeginStoryboard>
                <Storyboard Name="FormFadeOut"
                        Completed="FormFadeOut_Completed">
                    <DoubleAnimation  Name="FormFadeOutAnimation"
                                  Storyboard.TargetName="winHelp"
                                  Storyboard.TargetProperty="(Window.Opacity)"
                                  From="1.0"
                                  To="0.0"
                                  Duration="0:0:1"
                                  AutoReverse="False"
                                  RepeatBehavior="1x" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Window.Triggers>
    <Grid>
        
        <StackPanel x:Name="Stk1">
            <StackPanel>
                <TextBox  Width="202" Height="40" HorizontalAlignment="Left" Name="RentText" Background="AliceBlue"
                    Text="{Binding Path=impt_name, Mode=OneWay, NotifyOnTargetUpdated=True}"
                        TargetUpdated="OnTargetUpdated"/>
            </StackPanel>
            
            <ListBox x:Name="listBoxImpacts" ItemsSource="{Binding}" IsSynchronizedWithCurrentItem="True" ScrollViewer.CanContentScroll="False" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden"   Height="380" Background="DimGray" Width="268" BorderThickness="0">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <WrapPanel Orientation="Vertical" Background="#FF3E3832" MaxWidth="280">
                            <Label Content="{Binding impt_name}" Height="30" Width="300" Foreground="Beige"   HorizontalAlignment="Left" FontSize="15" />
                            <Label Content="{Binding impt_component}" Height="22" Width="300" Foreground="CadetBlue"   HorizontalAlignment="Right" FontSize="10" />
                        </WrapPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

            <Label Content="{Binding impt_name}" Height="30" Width="300" Foreground="Black"    HorizontalAlignment="Left" FontSize="15" />
            <Label Content="{Binding impt_component}" Height="92" Width="300" Foreground="Black" FontSize="16" />


          

        </StackPanel>



    </Grid>
</Window>
